package com.allenkerr.common;

/**
 * 返回码
 * Created by lk on 2017/4/14.
 * Updated by 小柯 on 2017/7/5.
 */
public enum ResponseCodeEnum {

    SUCCESS(ResultCode.SUCC,        "成功"),
    FAIL(ResultCode.FAIL,           "失败"),
    NOT_FOUND(ResultCode.NOT_FOUND, "找不到资源");

    private int code;
    private String text;

    ResponseCodeEnum(int code, String text) {
        this.code = code;
        this.text = text;
    }

    public int getCode() {
        return code;
    }

    public String getText() {
        return text;
    }
}